import 'package:fish_redux/fish_redux.dart';
import '../../../../app_files.dart';

class FixWorkerListViewState implements Cloneable<FixWorkerListViewState> {
  List<FixWorkerModel> workers;
  EasyRefreshController refreshController = EasyRefreshController();
  FixWorkerModel currentWorker;

  @override
  FixWorkerListViewState clone() {
    return FixWorkerListViewState()
      ..workers = workers
      ..refreshController = refreshController
      ..currentWorker = currentWorker;
  }
}

FixWorkerListViewState initState(Map<String, dynamic> args) {
  return FixWorkerListViewState()..currentWorker = args['worker'];
}
